package com.txzt.gaea.provide.dto;

import com.txzt.base.core.RtnInfo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class InformationTypeInfoUpdateDTO implements Serializable {

    private Long id;

    /**
     * 名称
     */
    private String informationTypeName;

    public RtnInfo checkValid() {
        if (id == null)
            return RtnInfo.PARAM_MISSING;
        return RtnInfo.SUCCESS;
    }
}
